#!/usr/bin/env bash
if [ $# -eq 1 ];then

   if [ "$1" = "d" ];then
        echo "start django server..."
        python manage.py runserver 0.0.0.0:8000

   elif [ "$1" = "g" ];then
        gunicorn blog.wsgi:application -b 0.0.0.0:8000

   elif [ "$1" = "p" ];then
        gunicorn --worker-class=gevent blog.wsgi:application -b 0.0.0.0:8000

   else
        echo "tasking none"
   fi

else
     echo "start django server..."
     python manage.py runserver 0.0.0.0:8000

fi